package com.sq.universe.system.dao;

import com.sq.universe.base.dao.BaseDao;
import com.sq.universe.system.entity.UserDepartmentEntity;
import org.springframework.stereotype.Repository;


@Repository
public interface UserDepartmentDao extends BaseDao<UserDepartmentEntity> {

    /**
     * 根据Id获取部门
     * @param userId
     * @return
     */
    public String getDepartmentCodesByUserid(Integer userId);

    /**
     * 根据Id获取所属部门
     * @param userId
     * @return
     */
    public String getDepartmentNamesByUserid(Integer userId);

}
